package com.kujie.utils;

import java.util.Map;

/**
 * 字符串转换工具
 *
 * @author check
 * @date 2025-07-24
 */
public class StringConvertUtil {
   public static String convert(String originString, Map<String, Object> replacements) {
      for (Map.Entry<String, Object> entry : replacements.entrySet()) {
         String key = entry.getKey();
         String value = entry.getValue() != null ? entry.getValue().toString() : "";
         originString = originString.replace("{" + key + "}", value);
      }
      return originString;
   }
}
